package cn.huiyunche.base.service.enums;

/**
 * 车辆信息图片类型枚举
 *
 * @author houjianhui
 */
public enum TruckPicTypeEnum {
    TRUCK("TRUCK_PIC", "车辆信息"),
    LICENSE("PERMIT_PIC", "证照信息");
//	INSURE("INSURE_PIC", "车辆运输许可证"),
//	IDENTITY("IDENTITY_PIC", "身份证");

    private final String value;
    private final String text;

    TruckPicTypeEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static TruckPicTypeEnum getByValue(String value) {
        for (TruckPicTypeEnum temp : TruckPicTypeEnum.values()) {
            if (temp.getValue().equals(value)) {
                return temp;
            }
        }
        return null;
    }
}
